print("hello python");

message = "helloWorld";
print(message)
# python 不区分单引号双引号
message = 'helloWorld';
print(message)

# 单词首字母变大写
name = 'wang yajie'
print(name.title())

# 大小写转换
print(name.upper())
print(name.lower())

print(name + name)

# 删除空白
# 还有左去除,右去除

str = '  has empty      '
print(str.strip())

print(2 + 2)

print(1 / 3)

# 数组

array = ["a", "b", "c"]
print(array)
print(array[1])
array[0] = "e";
print(array)
for temp in array:
    print(temp)
print()

age = 1
if age < 10:
    print("true")
elif age > 5:
    print("false")
else:
    print("other")

dic = {'name': "wang yajie", 'age': 12}
print(dic)
print('----------------------')
print(dic['name'])
print(dic['age'])

for item in dic.items():
    print(item)

print('&&&&&&&&&&&&&&&&&&')
for key in dic.keys():
    print(key)

    print(dic[key])
print("--")

sum = 1;
i = 1;

while i <= 100:
    sum += i
    i = i + 1;
print(sum)


def hello(name):
    world = "hello " + name
    print(world)
    return world.title()


world = hello("wangyajie")
print(world)
